import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getSettings = {
  getSettingsList(params) {
    return axios.post(`${base.bd}/admin/config/lists`, qs.stringify(params));
  },
  updateSetting(params) {
    return axios.post(`${base.bd}/admin/config/saveedit`, qs.stringify(params));
  },
  sortSettings(params) {
    return axios.post(`${base.bd}/admin/config/sort`, qs.stringify(params));
  },
  findConfig(params) {
    return axios.post(
      `${base.bd}/admin/config/find_iden`,
      qs.stringify(params)
    );
  },
  addEwmLists(params) {
    return axios.post(`${base.bd}/admin/config/savelist`, qs.stringify(params));
  },
  checkDf(params) {
    return axios.post(`${base.bd}/admin/config/check_df`, qs.stringify(params));
  },
  addMissionList(params) {
    return axios.post(`${base.bd}/admin/config/savelist`, qs.stringify(params));
  },
  getRewardType(params) {
    return axios.post(
      `${base.bd}/admin/reward/find_iden`,
      qs.stringify(params)
    );
  },
  updateMissCheck(params) {
    return axios.post(
      `${base.bd}/admin/config/config_open`,
      qs.stringify(params)
    );
  },
  updateMissPay(params) {
    return axios.post(
      `${base.bd}/admin/config/change_money`,
      qs.stringify(params)
    );
  },
  getNewTask(params){
    return axios.post(
      `${base.bd}/admin/sign_in/duty`,
      qs.stringify(params)
    );
  }
};
export default getSettings;
